/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.fjut.se1602.czq.service.impl;

import edu.fjut.se1602.czq.dao.impl.PetStoreDaoImpl;
import edu.fjut.se1602.czq.entity.PetStore;
import edu.fjut.se1602.czq.service.PetStoreService;
import java.util.List;

/**
 *
 * @author asus
 */
public class PetStoreServiceImpl implements PetStoreService {
    PetStoreDaoImpl psdi = new PetStoreDaoImpl();
    @Override
    public int Login(String userName, String userPassword) {
        return psdi.Login(userName, userPassword);
    }

    @Override
    public List<PetStore> getStores() {
       // PetStoreDaoImpl psdi = new PetStoreDaoImpl();
        return psdi.getAllStores();
    }

}
